Page des articles

<?php
//odcf_debug::debug($this);
?>

<script>
	$(document).ready(function() {
		$( "#ajouter_article" ).click(function( event ) {
			//alert( "Thanks for visiting!" );
			//alert(" <?=$this->baseUrl() ?> ");
			//affadd
			$.ajax({
					type: "GET",
					url: "<?=$this->baseUrl() ?>/articles/affadd",
					async: false,
					dataType: "script"
			});
		});
			
		/* definit en ajax plutot
		$("#submitbutton").click(function( event ) {
			//alert( "Thanks for visiting!" );
			alert(" clic ");
			//affadd
	
		});	*/
			
		$("#div_article").hide();

		
		
		
	});
	
</script>

<pre>
<?php

//var_dump($this->tab_all_article);

?>
</pre>

<span id="ajouter_article">Ajouter un article</span>

<div id="div_article" style="position: absolute;top: 200px;left: 200px;border: 1px solid">
	ne devrait pas apparaitre
	<?php
	
		//echo $this->form_article;
	
	
	?>
	
</div>